package com.cloudkinto.enumType.order.outbound;

import com.baomidou.mybatisplus.core.enums.IEnum;

/**
 * @author long
 * @Description 出库订单类型
 * @Date 2025/3/14 13:33
 */
public enum OutboundOrderKind implements IEnum<String> {
    /**
     * 常规出库订单 一件代发 批发
     */
    outbound,
    /**
     * 调拨发货计划
     */
    allocate;

    @Override
    public String getValue() {
        return this.name();
    }

    public static OutboundOrderKind fromValue(String value) {
        for (OutboundOrderKind type : OutboundOrderKind.values()) {
            if (type.name().equals(value)) {
                return type;
            }
        }
        return null;
    }
}
